package exemplos;

import java.awt.Graphics;
import javax.swing.JPanel;

public class DrawLines extends JPanel{
    
    public void paintComponent( Graphics g ){
    super.paintComponent( g );
        
        g.drawLine( 10, 10, 10, 510 );
        g.drawLine( 510, 10, 510, 510 );
        g.drawLine( 1010, 10, 1010, 510 );
        g.drawLine( 10, 10, 1010, 10 );
        g.drawLine( 10, 510, 1010, 510 );
    

    }
}
